import request from '@/utils/request';

const organismApi = {};


organismApi.page = (params) => {
	return request({
		url: '/platform-api/organism/page',
		method: 'get',
		params: params,
	})
}
organismApi.add = (params) => {
	return request({
		url: '/platform-api/organism',
		method: 'post',
		data: params,
	})
}
organismApi.update = (params) => {
	return request({
		url: '/platform-api/organism',
		method: 'put',
		data: params,
	})
}
organismApi.get = (id) => {
	return request({
		url: '/platform-api/organism/' + id,
		method: 'get',
	})
}
organismApi.delete = (id) => {
	return request({
		url: '/platform-api/organism/' + id,
		method: 'delete',
	})
}


export default organismApi